@import "module";

//购物车
.cart{
    border-top: 2px solid #f4c332;
    min-height: 500px;
    .white_bg{   //通用样式
        width: 100%;
        background-color: #fff;
        border-radius: 3px;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        -ms-border-radius: 3px;
        -o-border-radius: 3px;
    }
    &_inner{
        overflow: hidden;
       
    }
    &_logo{
        color: #ff9800;
        font-weight: bold;
        margin-top: 10px;
    }
    &_title{
        margin: 20px 0;
        span{
            font-size: 14px;
            line-height: 50px;
            input{
                margin:0 26px;
                width: 18px;
                height: 18px;
                vertical-align: middle;
            }
            &:first-of-type{
                margin-right: 54px;
            }
            &:nth-of-type(2){
                margin-right: 150px;
            }
            &:nth-of-type(3){
                margin-right: 222px;
            }
            &:nth-of-type(4){
                margin-right: 130px;
            }
            &:nth-of-type(5){
                margin-right: 125px;
            }
            &:nth-of-type(6){
                margin-right: 105px;
            }
        }
    }
    &_body{
        .cart_item{
            img{
                width: 100px;
                margin: 10px 0;
            }
            display: flex;
            justify-content: space-around;
            align-items: center;
            margin-bottom: 10px;
            input{
                height: 30px;
                width: 30px;
                float: left;
                margin-top: 10px;
                font-family: 'cursive','Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
            }
            input[type='text']{
                width: 36px;
                text-align: center;
                border: 1px solid #41cc6e;
                box-sizing: border-box;
            }
            input[type='button']{
                cursor: pointer;
                font-weight: bold;
                font-size: 20px;
                color: white;
                background-color: #41cc6e;
                &:hover{
                    color: yellow;
                }
            }
            input[type='checkbox']{
                width: 18px;
                height: 18px;
            }
            .del{
                width: 60px;
                height: 30px;
                border-radius: 2px;
                -webkit-border-radius: 2px;
                -moz-border-radius: 2px;
                -ms-border-radius: 2px;
                -o-border-radius: 2px;
                transition: all .3s;
                -webkit-transition: all .3s;
                -moz-transition: all .3s;
                -ms-transition: all .3s;
                -o-transition: all .3s;
                background-color: #41c76d;
                color: white;
                cursor: pointer;
                &:hover{
                    background-color: red;
                    
                }
            }
            .good_txt{
                h3{
                    width: 250px;
                    overflow: hidden;
                    font-size: 12px;
                    color: #666;
                    text-overflow: ellipsis;
                }
                h2{
                    width: 250px;
                    overflow: hidden;
                    font-size: 16px;
                    text-overflow: ellipsis;
                }
            }
            .single{
                font-family: fantasy;
                color: red;
                width: 60px;
            }
            .account_small{
                font-family: fantasy;
                color: #666;
                width: 60px;
            }
        }
        .empty_cart{
            height: 250px;
        }
    }
    &_footer{
        margin: 20px 0;
        height: 60px;
        display: flex;
        justify-content: space-between;
        &_left{
            display: flex;
            justify-content: space-around;
            align-items: center;
            font-size: 14px;
            span{
                padding: 0 20px;
                i{
                    font-style: normal;
                    width: 30px;
                    margin: 0 5px;
                    color: rgb(207, 84, 26);
                }
            }
            input{
                width: 18px;
                height: 18px;
                margin-right: 28px;
                vertical-align: middle;
            }
            .lot_del{
                font-weight: bold;
                color: #41cc6e;
                cursor: pointer;
                &:hover{
                    color: red;
                }
            }
            .selected{
                line-height: 60px;
                i{
                    font-size: 20px;
                    color: red;
                }
            }


        }
        &_right{
            display: flex;
            justify-content: space-between;
            align-items: center;
            button{
                width: 150px;
                height: 40px;
                margin-right: 20px;
                font-size: 20px;
                font-weight: bold;
                border-radius: 2px;
                -webkit-border-radius: 2px;
                -moz-border-radius: 2px;
                -ms-border-radius: 2px;
                -o-border-radius: 2px;
                transition: all .3s;
                -webkit-transition: all .3s;
                -moz-transition: all .3s;
                -ms-transition: all .3s;
                -o-transition: all .3s;
                background-color: #41c76d;
                color: white;
                cursor: pointer;
                &:hover{
                    background-color: orange;
                }
            }
            
                span{
                    line-height: 20px;
                    i{
                        display: inline-block;
                        width: 110px;
                        font-style: normal;
                        font-family: fantasy;
                        font-size: 25px;
                        vertical-align: middle;
                    }
                }
                .all_count{
                    font-size: 20px;
                    color: red;
                    display: inline-flex;
                    font-weight: bold;
                    i{
                        font-weight: normal;
                    }
                }
            
        }
    }
}



